﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapLib
{
    class Program
    {
        static void Main(string[] args)
        {
            int[,] map;
            method1 m = new method1();


            m.MapX = 40;
            m.MapY = 40;
            //Console.SetBufferSize(m.MapX -1, m.MapY -1);

            Console.SetWindowSize(m.MapX, m.MapY);

            map = m.go();

            for (int x = 0; x < map.GetLength(0); x++)
            {
                for (int y = 0; y < map.GetLength(1); y++)
                {
                    if (map[x, y] == 1)
                    {
                        Console.Write(".");
                    }
                    else if (map[x, y] == 0)
                    {
                        Console.Write(" ");
                    }                   
                }
                Console.WriteLine();
            }
            Console.Read();
        }        
    }
}
